home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19981211-19990422
/
000146_news@watsun.cc.columbia.edu _Sun Jan 24 17:47:13 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA15050
for <kermit.misc@watsun.cc.columbia.edu>; Sun, 24 Jan 1999 17:47:13 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA17660
for kermit.misc@watsun.cc.columbia.edu; Sun, 24 Jan 1999 17:33:13 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: sleeping for random amounts of time
Date: 24 Jan 1999 22:33:11 GMT
Organization: Columbia University
Message-ID: <78g737$h7q$1@newsmaster.cc.columbia.edu>
To: kermit.misc@mailrelay2.cc.columbia.edu
In article <gerlachF60yL4.A3t@netcom.com>,
Matthew H. Gerlach <gerlach@netcom.com> wrote:
:
: Thank you for the usual prompt and useful answer. The great support
: is one of many reasons I use kermit and tell anyone who'll listen to use
: kermit.
:
Thanks!
: Most of the time I use Ckermit on a variety of Unix, but when I need to
: do something for a PC Kermit95 does the trick.
:
: It sounds to me that I'll get the CKermit 7.0 and give it a go. Will
: this function be mentioned in the source code's documentation?
:
Of course. The function is \frandom(n); it returns a pseudorandom integer
between 0 and n-1.
If you want to do random sleeps with smaller granularity than a second, you
can use something like:
msleep(\frandom(3000))
(sleep a random amount of time between 0 and 2999 milliseconds.)
- Frank